repo: Plug a leak
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Tue, 10 May 2016 10:23:03 +0000 (12:23 +0200)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Tue, 10 May 2016 13:47:36 +0000 (13:47 +0000)
The base URI created in this line was always (sans erroneous
situations) overwritten in the code block below without freeing it
previously, so it leaked.

Closes: #290
Approved by: cgwalters

src/libostree/ostree-repo.c

index 7caf528e52a6235b9079db27193a32e2c1b0464c..243b7ae665ec5d7ddc04ad6610b44f2e4e1397e0 100644 (file)
@@ -1913,8 +1913,6 @@ repo_remote_fetch_summary (OstreeRepo    *self,
   if (fetcher == NULL)
     goto out;
 
-  base_uri = soup_uri_new (metalink_url_string);
-
   {
     g_autofree char *url_string = NULL;
     if (metalink_url_string)